package com.ruoyi.resale.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.resale.mapper.ReSaleMapper;
import com.ruoyi.resale.domain.ReSale;
import com.ruoyi.resale.service.IReSaleService;

/**
 * 商品销售退货Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
@Service
public class ReSaleServiceImpl implements IReSaleService 
{
    @Autowired
    private ReSaleMapper reSaleMapper;

    /**
     * 查询商品销售退货
     * 
     * @param id 商品销售退货主键
     * @return 商品销售退货
     */
    @Override
    public ReSale selectReSaleById(Integer id)
    {
        return reSaleMapper.selectReSaleById(id);
    }

    /**
     * 查询商品销售退货列表
     * 
     * @param reSale 商品销售退货
     * @return 商品销售退货
     */
    @Override
    public List<ReSale> selectReSaleList(ReSale reSale)
    {
        return reSaleMapper.selectReSaleList(reSale);
    }

    /**
     * 新增商品销售退货
     * 
     * @param reSale 商品销售退货
     * @return 结果
     */
    @Override
    public int insertReSale(ReSale reSale)
    {
        return reSaleMapper.insertReSale(reSale);
    }

    /**
     * 修改商品销售退货
     * 
     * @param reSale 商品销售退货
     * @return 结果
     */
    @Override
    public int updateReSale(ReSale reSale)
    {
        return reSaleMapper.updateReSale(reSale);
    }

    /**
     * 批量删除商品销售退货
     * 
     * @param ids 需要删除的商品销售退货主键
     * @return 结果
     */
    @Override
    public int deleteReSaleByIds(Integer[] ids)
    {
        return reSaleMapper.deleteReSaleByIds(ids);
    }

    /**
     * 删除商品销售退货信息
     * 
     * @param id 商品销售退货主键
     * @return 结果
     */
    @Override
    public int deleteReSaleById(Integer id)
    {
        return reSaleMapper.deleteReSaleById(id);
    }
}
